[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
randomize() Initialize Random Number Generator (Macro)
#include <stdlib.h>
void randomize(void);
randomize() initializes the random number generator. It is
recommended that <time.h> be included when using the random number
generator, as randomize() calls the time() function.
Returns: Nothing.
-------------------------------- Example ---------------------------------
The following statements initialize the random number generator and print a
random number.
#include <stdlib.h>
#include <time.h>
main()
{
randomize();
printf("%d ",random(100));
}
See Also:
rand()
random()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson